import React from 'react';
import { HashRouter as Router, Route, Switch } from 'react-router-dom';
import { Content } from 'react-fule-ui';
// 二级菜单
import { subMenu } from './subMenu';
import './index.scss';
// 路由模块
import XueHua1 from './Pages/Xuehua1/index.js';
import XueHua2 from './Pages/Xuehua2/index.js';
export default function PluginsCanvas() {
  return (
    <Router>
      <Content>
        <Content.Header>Canvas</Content.Header>
        <Content.Body subMenu={subMenu} full>
          <Switch>
            <Route exact path="/PluginsCanvas" component={XueHua1} />
            <Route path="/PluginsCanvas/XueHua1" component={XueHua1} />
            <Route path="/PluginsCanvas/XueHua2" component={XueHua2} />
          </Switch>
        </Content.Body>
      </Content>
    </Router>
  );
}
